import customerApi from '@/config/server/api/customer'
import userApi from '@/config/server/api/user'
import baseApi from '@/config/server/api/base'

//获取案场SOP配置
function getBuildingSopConfig(params) {
  return customerApi.buildingManagement.getBuildingSopConfig.fetch(params)
}
//SOP审核开关
function auditSwitch(params) {
  return customerApi.buildingManagement.auditSwitch.fetch(params)
}

//编辑特殊规则
function editRule(params) {
  return customerApi.buildingManagement.editRule.fetch(params)
}
// 提前关闭特殊规则
function earlyShutdown(params) {
  return customerApi.buildingManagement.earlyShutdown.fetch(params)
}
//平台Sop任务
function getSopPlatformConfig(params) {
  return customerApi.platSop.getSopPlatformConfig.fetch(params)
}
//SOP平台审核/任务开关
function auditPlatformSwitch(params) {
  return customerApi.platSop.auditPlatformSwitch.fetch(params)
}

function sopSettingList(params) {
  return userApi.SOP.sopSettingList.fetch(params)
}

function userAuditPlatformSwitch(params) {
  return userApi.SOP.userAuditPlatformSwitch.fetch(params)
}

function updateClass(params) {
  return userApi.SOP.updateClass.fetch(params)
}

function getPointLeader(params) {
  return userApi.SOP.getPointLeader.fetch(params)
}

function getOptionalLeader(params) {
  return userApi.SOP.getOptionalLeader.fetch(params)
}

function saveLeaderList(params) {
  return userApi.SOP.saveLeaderList.fetch(params)
}

function updatePoint(params) {
  return userApi.SOP.updatePoint.fetch(params)
}

function getMultiPoint(params) {
  return userApi.SOP.getMultiPoint.fetch(params)
}

function bindProcess(params) {
  return userApi.SOP.bindProcess.fetch(params)
}

function manageList(params) {
  return baseApi.SOP.manageList.fetch(params)
}

function getMultiPointOrg(params) {
  return userApi.SOP.getMultiPointOrg.fetch(params)
}

function scoreList(params) {
  return userApi.SOP.scoreList.fetch(params)
}

function scoreUpdate(params) {
  return userApi.SOP.scoreUpdate.fetch(params)
}

function orgList(params) {
  return userApi.SOP.orgList.fetch(params)
}

function getOrgAndLevel(params) {
  return userApi.organizationManagement.getOrgAndLevel.fetch(params)
}

function updateOrg(params) {
  return userApi.SOP.updateOrg.fetch(params)
}

function getRule(params) {
  return userApi.SOP.getRule.fetch(params)
}

function editRule1(params) {
  return userApi.SOP.editRule.fetch(params)
}

function earlyShutdown1(params) {
  return userApi.SOP.earlyShutdown.fetch(params)
}

function getBackRole(params) {
  return userApi.SOP.getBackRole.fetch(params)
}

function leaderOrgList(params) {
  return userApi.SOP.leaderOrgList.fetch(params)
}

function leaderOrgListSave(params) {
  return userApi.SOP.leaderOrgListSave.fetch(params)
}

function designatedList(params) {
  return userApi.SOP.designatedList.fetch(params)
}

function getLeader(params) {
  return userApi.SOP.getLeader().fetch(params)
}

function importList(params) {
  return userApi.SOP.importList.fetch(params)
}

function backRolePreview(params) {
  return userApi.SOP.backRolePreview.fetch(params)
}

function leaderOrgImport(params) {
  return userApi.SOP.leaderOrgImport.fetch(params)
}

function designatedListSave(params) {
  return userApi.SOP.designatedListSave.fetch(params)
}

function getRolesByUser(params) {
  return userApi.SOP.getRolesByUser.fetch(params)
}
function getAuthOrgByUser(params) {
  return userApi.SOP.getAuthOrgByUser.fetch(params)
}
function leaderSync(params) {
  return userApi.SOP.leaderSync.fetch(params)
}
function sopSettingOtherList(params) {
  return userApi.SOP.sopSettingOtherList.fetch(params)
}
function auditPlatformSwitch1(params) {
  return userApi.SOP.auditPlatformSwitch1.fetch(params)
}
function sopSettingBuildingList(params) {
  return userApi.SOP.sopSettingBuildingList.fetch(params)
}
function buildingAuditPlatformSwitch(params) {
  return userApi.SOP.buildingAuditPlatformSwitch.fetch(params)
}

function sopGetTaskLeader(params) {
  return userApi.SOP.sopGetTaskLeader.fetch(params)
}

function optionalLeader(params) {
  return userApi.SOP.optionalLeader.fetch(params)
}
function sopSetTaskLeader(params) {
  return userApi.SOP.sopSetTaskLeader.fetch(params)
}
function noAvailSop(params) {
  return userApi.SOP.noAvailSop.fetch(params)
}
function getLeaderMsg(params) {
  return userApi.SOP.getLeaderMsg.fetch(params)
}

// 扣分节点列表
function getDeductPointsList(params) {
  return userApi.SOP.deductPointsList.fetch(params)
}

function setDeductPointsFun(params) {
  return userApi.SOP.setDeductPoints.fetch(params)
}

export default {
  getBuildingSopConfig,
  auditSwitch,
  editRule,
  getSopPlatformConfig,
  auditPlatformSwitch,
  earlyShutdown,
  sopSettingList,
  userAuditPlatformSwitch,
  updateClass,
  getPointLeader,
  getOptionalLeader,
  saveLeaderList,
  updatePoint,
  getMultiPoint,
  manageList,
  bindProcess,
  getMultiPointOrg,
  scoreList,
  scoreUpdate,
  orgList,
  getOrgAndLevel,
  updateOrg,
  getRule,
  editRule1,
  earlyShutdown1,
  getBackRole,
  leaderOrgList,
  leaderOrgListSave,
  designatedList,
  getLeader,
  importList,
  backRolePreview,
  leaderOrgImport,
  designatedListSave,
  getRolesByUser,
  getAuthOrgByUser,
  leaderSync,
  sopSettingOtherList,
  auditPlatformSwitch1,
  sopSettingBuildingList,
  buildingAuditPlatformSwitch,
  sopGetTaskLeader,
  optionalLeader,
  sopSetTaskLeader,
  noAvailSop,
  getLeaderMsg,
  getDeductPointsList,
  setDeductPointsFun
}
